package com.egg.auth.feign;

import com.egg.auth.feign.fallback.AuthTestFeignClientFallback;
import com.egg.auth.model.request.web.TestPost;
import com.egg.common.core.model.response.ResponseData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;


@FeignClient(
        value = "auth"
        , url = "${api.feign.url.auth:}"
        , fallbackFactory = AuthTestFeignClientFallback.class
)
public interface AuthTestFeignClient {


    @PostMapping("/feign/test")
    ResponseData<Long> post(@RequestBody TestPost param);


}
